import { observer } from "mobx-react-lite";
import { useStore } from "./store";

const Mobx = () => {
  const { count, increment, decrement } = useStore("userStore");

  return (
    <div>
      <button onClick={increment}>++</button>
      <button onClick={decrement}>--</button>
      {count}
    </div>
  );
};

export default observer(Mobx);
